﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Mersiv.Lib.Wrapper
{
  public class HgRepository : IComparable<HgRepository>, IEquatable<HgRepository>
  {

    public string Name { get; set; }
    public string WorkingDirectory { get; set; }

    public HgRepository()
    {
    }

    public HgRepository(string name, string workingDirectory)
    {
      this.Name = name;
      this.WorkingDirectory = workingDirectory;
    }


    public int CompareTo(HgRepository other)
    {
      return this.WorkingDirectory.CompareTo(other.WorkingDirectory);
    }

    public bool Equals(HgRepository other)
    {
      return (this.WorkingDirectory == other.WorkingDirectory);
    }

  }
}